;; I/O Examples

;; Opening files
(define input-port (open-input-file "input.txt"))
(define output-port (open-output-file "output.txt"))

;; Display the ports
input-port
output-port

;; Check if something is an EOF object
(eof-object? 1)

;; Close the ports
(close-input-port input-port)
(close-output-port output-port)